﻿/* API函数：Net类型相关
 */

namespace LSLib.API
{
    using System;
    using System.Runtime.InteropServices;

    [Serializable]
    public static class Net
    {
        [DllImport("wininet.dll", SetLastError = true)]
        internal extern static bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);

        [Flags]
        public enum ConnectionStates
        {
            Modem = 0x1,
            LAN = 0x2,
            Proxy = 0x4,
            RasInstalled = 0x10,
            Offline = 0x20,
            Configured = 0x40,
        }
    }
}
